package cn.school.entity;

import java.text.SimpleDateFormat;
import java.util.Date;

public class Student {
	private long stuno;
	private String sname;
	private String sex;
	private String telephone;
	private String qq;
	private String wechat;
	private long gradeid;
	private java.sql.Date enterdate;
	private String fromcity;
	private java.sql.Date birthday;
	private String address;
	private String pass;
	private String gname;

	public long getStuno() {
		return stuno;
	}

	public void setStuno(long stuno) {
		this.stuno = stuno;
	}

	public String getSname() {
		return sname;
	}

	public void setSname(String sname) {
		this.sname = sname;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public String getTelephone() {
		return telephone;
	}

	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}

	public String getQq() {
		return qq;
	}

	public void setQq(String qq) {
		this.qq = qq;
	}

	public String getWechat() {
		return wechat;
	}

	public void setWechat(String wechat) {
		this.wechat = wechat;
	}

	public long getGradeid() {
		return gradeid;
	}

	public void setGradeid(long gradeid) {
		this.gradeid = gradeid;
	}

	public java.sql.Date getEnterdate() {
		return enterdate;
	}

	public void setEnterdate(java.sql.Date enterdate) {
		this.enterdate = enterdate;
	}

	public String getFromcity() {
		return fromcity;
	}

	public void setFromcity(String fromcity) {
		this.fromcity = fromcity;
	}

	public java.sql.Date getBirthday() {
		return birthday;
	}

	public void setBirthday(java.sql.Date birthday) {
		this.birthday = birthday;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getPass() {
		return pass;
	}

	public void setPass(String pass) {
		this.pass = pass;
	}

	public Student() {

	}

	public Student(long stuno, String sname, String sex, String telephone, String qq, String wechat, long gradeid,
			java.sql.Date enterdate, String fromcity, java.sql.Date birthday, String address, String pass) {
		super();
		this.stuno = stuno;
		this.sname = sname;
		this.sex = sex;
		this.telephone = telephone;
		this.qq = qq;
		this.wechat = wechat;
		this.gradeid = gradeid;
		this.enterdate = enterdate;
		this.fromcity = fromcity;
		this.birthday = birthday;
		this.address = address;
		this.pass = pass;
	}

	public Student(String sname, String sex, String telephone, String qq, String wechat, long gradeid,
			java.sql.Date enterdate, String fromcity, java.sql.Date birthday, String address, String pass) {
		super();
		this.sname = sname;
		this.sex = sex;
		this.telephone = telephone;
		this.qq = qq;
		this.wechat = wechat;
		this.gradeid = gradeid;
		this.enterdate = enterdate;
		this.fromcity = fromcity;
		this.birthday = birthday;
		this.address = address;
		this.pass = pass;
	}

	public String toString() {
		if (gname == null) {
			return stuno + "\t" + sname + "\t" + sex + "\t" + telephone + "\t" + qq + "\t" + wechat + "\t" + gradeid
					+ "\t" + enterdate + "\t" + fromcity + "\t" + birthday + "\t" + address + "\t" + pass;
		}
		return stuno + "\t" + sname + "\t" + sex + "\t" + telephone + "\t" + qq + "\t" + wechat + "\t" + gradeid + "\t"
				+ enterdate + "\t" + fromcity + "\t" + birthday + "\t" + address + "\t" + pass + "\t" + gname;
	}
}
